package method.method1202;

public class arr01 {
    public static void main(String[] args) {
        /*int[] arr=new int[]{10,20,30};
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*/
        /*int[] arr={10,20,30};
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*/
        int[] arr = new int[4];
        arr[0] = 10;
        arr[1] = 20;
        arr[2] = 30;
        arr[3] = 40;
        System.out.println(arr[1]);
    }
}

